package com.qingcloud.fexecutor.mapper;

import com.qingcloud.fexecutor.base.mapper.WmBaseMapper;
import com.qingcloud.fexecutor.model.ApiBase;
import org.apache.ibatis.annotations.Param;

import java.util.Collection;
import java.util.List;

/**
 * <p>
 * API基础信息 Mapper 接口
 * </p>
 *
 * @author wangjinnan
 * @since 2021-05-10
 */
public interface ApiBaseMapper extends WmBaseMapper<ApiBase> {

    /**
     * 根据编码查询应用下的API
     */
    List<ApiBase> findByCode(@Param("appId") Integer appId, @Param("codes") Collection<String> codes);

}
